﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SchoolLibrary.Entity
{
    public class Genre : Identity
    {
        public const string FIND_BY_ID = "SELECT * FROM genre g WHERE g.id = :id";
        public const string FIND_ALL = "SELECT * FROM genre";

        public const string NAME_COLUMN_NAME = "name";

        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        public override string ToString()
        {
            return name;
        }
    }
}
